FROM java:8

MAINTAINER maczh maczh@qq.com

VOLUME /tmp

ADD account-3.0.0.jar account.jar

RUN bash -c 'touch /account.jar'

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' >/etc/timezone

EXPOSE 8042

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-jar", "/account.jar"]
